<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>

    console.log('Number(true)', Number(true));//1
    console.log('Number(false)', Number(false));//0
    console.log('Number(null)', Number(null));//0
    console.log('Number(" ")', Number(' '));// 0 
    console.log('Number("123")', Number('123'));// 123
    console.log('Number(123n)', Number(123n));// 123


    console.log('Number(undefined)', Number(undefined));//  NaN
    console.log('Number("hello")', Number('hello'));//  NaN
    console.log('Number(" 1 23 ")', Number(' 1 23 '));//  
    // console.log('Number(Symbol())', Number(Symbol()));//  
    console.log('Number({})', Number({}));//  
    console.log('Number(alert)', Number(alert));//  



  </script>
</body>

</html>